#!/usr/bin/bash

#my keys: $mod+Insert $mod+Delete

if [[ "on" == $key ]] ; then
  sway-tools-wifi on
  sway-tools-usb  on
  sway-tools-lan  on
elif [[ "off" == $key ]] ; then
  sway-tools-wifi off
  sway-tools-usb  off
  sway-tools-lan  off
fi

# options:
if [[ "" == $1 ]] ; then
	echo "Usage:
	sway-tools [KEY]"
	echo command for quick control of some networking tools: wifi usb lan
	echo
	echo Try 'sway-tools --help or -h' for more information.

	exit `false`
elif [[ "-h" == $1 ||  "--help" == $1  ]] ; then
	echo "Usage:
	sway-tools-network on - wifi on
	sway-tools-network off - wifi off"

	echo command for quick control of some networking tools: wifi usb lan
	
	exit `false`
else
	key=$1
fi
